package jehc.cloud.oauth.dao;
import java.util.List;
import java.util.Map;
import jehc.cloud.oauth.model.OauthResources;

/**
* 授权中心资源中心 
* 2019-06-20 14:41:44  邓纯杰
*/
public interface OauthResourcesDao{
	/**
	* 分页
	* @param condition 
	* @return
	*/
	List<OauthResources> getOauthResourcesListByCondition(Map<String, Object> condition);
	/**
	* 查询对象
	* @param resources_id 
	* @return
	*/
	OauthResources getOauthResourcesById(String resources_id);
	/**
	* 添加
	* @param oauthResources 
	* @return
	*/
	int addOauthResources(OauthResources oauthResources);
	/**
	* 修改
	* @param oauthResources 
	* @return
	*/
	int updateOauthResources(OauthResources oauthResources);
	/**
	* 修改（根据动态条件）
	* @param oauthResources 
	* @return
	*/
	int updateOauthResourcesBySelective(OauthResources oauthResources);
	/**
	* 删除
	* @param condition 
	* @return
	*/
	int delOauthResources(Map<String, Object> condition);
	/**
	* 批量修改
	* @param oauthResourcesList 
	* @return
	*/
	int updateBatchOauthResources(List<OauthResources> oauthResourcesList);
	/**
	* 批量修改（根据动态条件）
	* @param oauthResourcesList 
	* @return
	*/
	int updateBatchOauthResourcesBySelective(List<OauthResources> oauthResourcesList);

	/**
	 * 根据Role查资源
	 * @param condition
	 * @return
	 */
	List<OauthResources> getResourcesListForRole(Map<String, Object> condition);

	/**
	 * 获取全部资源
	 * @param condition
	 * @return
	 */
	List<OauthResources> getOauthResourcesListAll(Map<String, Object> condition);
}
